<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
	<head>
		<title>订单详细</title>
		<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
		<script type="text/javascript" src="${ctx}/script/common/common.js"></script>
		<script type="text/javascript" src="${ctx}/script/order.js"></script>
		<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
	</head>
	<body style="font-size: 12px" onload="countAll();">
		<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
		<form action="${ctx}/moBillManage.do?method=moWaitListBill"
			method="post">
			<table width="750px" align="center">
				<tr>
					<td colspan="4" class="list_tit">
						订单详细
					</td>
				</tr>
				<tr>
					<th class="td_01" height="18px">
						订单状态
					</th>
					<th class="td_01">
						订单号
					</th>
					<th class="td_01" colspan="2">
						订购日期
					</th>
				</tr>
				<tr>
					<td class="td_03">
						<span id="lblTitle" style="color: Red;"> <logic:equal
								value="6" name="orderall" property="status">已完成</logic:equal> <logic:equal
								value="1" name="orderall" property="status">待审核</logic:equal> <logic:equal
								value="8" name="orderall" property="status">可自提</logic:equal> <logic:equal
								value="2" name="orderall" property="status">已审核，正在配货</logic:equal>
							<logic:equal value="4" name="orderall" property="status">客服取消</logic:equal>
							<logic:equal value="9" name="orderall" property="status">待自提</logic:equal>
							<logic:equal value="7" name="orderall" property="status">已自提</logic:equal>
						</span>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="id">
&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="id">
						${orderall.id}					</logic:notEmpty>
					</td>
					<td class="td_03" colspan="2">
						<logic:empty name="orderall" property="adddate">
&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="adddate">
							<fmt:parseDate var="date12" type="date"
								value="${orderall.adddate}" pattern="yyyy-MM-dd" />
							<fmt:formatDate value="${date12}" type="date" />
						</logic:notEmpty>
					</td>
				</tr>
				<tr>
					<td colspan="4" class="list_tit" height="18px">
						会员信息
					</td>
				</tr>
				<tr>
					<th class="td_01">
						用户ID
					</th>
					<th class="td_01">
						收货人
					</th>
					<th class="td_01">
						用户名
					</th>
					<th class="td_01">
						vip卡号
					</th>
				</tr>

				<tr>
					<td class="td_03">
						<logic:empty name="orderall" property="customerid">
						&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="customerid">
						${orderall.customerid}						</logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="consignee">
					  &nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="consignee">
						${orderall.consignee}						</logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="customername">
						&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="customername">
						${orderall.customername}						</logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="vipcode">
&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="vipcode">
						${orderall.vipcode}						</logic:notEmpty>
					</td>
				</tr>
				<tr>
					<td colspan="4" class="list_tit">
						收货人信息
					</td>
				</tr>
				<tr>
					<th class="td_01" height="18px">
						姓名
					</th>
					<th class="td_01">
						地址
					</th>
					<th class="td_01">
						电话号码
					</th>
					<th class="td_01">
						邮编
					</th>
				<tr>
					<td class="td_03">
						<logic:empty name="orderall" property="consignee">
&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="consignee">
						${orderall.consignee}						</logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="address">
&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="address">
						${orderall.address}						</logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="mobilephone">
&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="mobilephone">
						${orderall.mobilephone}						</logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="postcode">
&nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="postcode">
						${orderall.postcode}						</logic:notEmpty>
					</td>
				</tr>
				<tr>
					<td colspan="4" class="list_tit">
						支付信息
					</td>
				</tr>
				<tr>
					<th class="td_01" height="18px">
						付款方式
					</th>
					<th class="td_01">
						滞留金
					</th>
					<th class="td_01">
						支付金额
					</th>
					<th class="td_01">
						支付积分
					</th>
				</tr>
				<tr>
					<td class="td_03">
						<logic:empty name="orderall" property="paymenttype">&nbsp;</logic:empty>
						<logic:equal value="1" name="orderall" property="paymenttype">支付宝</logic:equal>
						<logic:equal value="2" name="orderall" property="paymenttype">快钱</logic:equal>
						<logic:equal value="3" name="orderall" property="paymenttype">信用卡网上支付</logic:equal>
						<logic:equal value="4" name="orderall" property="paymenttype">上门自提</logic:equal>
						<logic:equal value="5" name="orderall" property="paymenttype">货到付款</logic:equal>
						<logic:equal value="6" name="orderall" property="paymenttype">银行转账/汇款</logic:equal>
						<logic:equal value="7" name="orderall" property="paymenttype">货到POS机刷卡</logic:equal>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="usebalance">
					0					</logic:empty>
						<logic:notEmpty name="orderall" property="usebalance">
                          ${orderall.usebalance}                          </logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="orderprice">
					0					</logic:empty>
						<logic:notEmpty name="orderall" property="orderprice">
						${orderall.orderprice}						</logic:notEmpty>
					</td>
					<td class="td_03">
						<logic:empty name="orderall" property="usepoint">
					0					</logic:empty>
						<logic:notEmpty name="orderall" property="usepoint">
						${orderall.usepoint}						</logic:notEmpty>
					</td>
				</tr>
				<tr>
					<td colspan="4" class="list_tit">
						配送信息
					</td>
				</tr>
				<tr>
					<th colspan="2" class="td_01" height="18px">
						配送方式
						<logic:equal value="1" name="orderall" property="delivertype"></logic:equal>
					</th>
					<th colspan="2" class="td_01">
						ems号
						<logic:empty name="orderall" property="delivercode"></logic:empty>
						<logic:notEmpty name="orderall" property="delivercode"></logic:notEmpty>
					</th>
				</tr>
				<tr>
					<td colspan="2" class="td_03">
						<logic:equal value="1" name="orderall" property="delivertype">顺丰速运（北京次晨达）</logic:equal>
						<logic:equal value="2" name="orderall" property="delivertype">顺丰速运（次晨达）</logic:equal>
						<logic:equal value="3" name="orderall" property="delivertype">顺丰速运（次日达）</logic:equal>
						<logic:equal value="4" name="orderall" property="delivertype">顺丰速运（3日内）</logic:equal>
						<logic:equal value="5" name="orderall" property="delivertype">EMS</logic:equal>
						<logic:equal value="6" name="orderall" property="delivertype">圆通快递</logic:equal>
						<logic:equal value="7" name="orderall" property="delivertype">上门自提</logic:equal>
						<logic:equal value="8" name="orderall" property="delivertype">货到付款</logic:equal>
					</td>
					<td colspan="2" class="td_03">
						<logic:empty name="orderall" property="delivercode">
  &nbsp;					</logic:empty>
						<logic:notEmpty name="orderall" property="delivercode">
					${orderall.delivercode}						</logic:notEmpty>
					</td>
			</table>
			
			<table width="750px" id="buzhi" align="center">
				<tr>
					<td colspan="7" class="list_tit">
						商品信息
					</td>
				</tr>
				<tr>
					<th class="td_01" height="18px">
						物品
					</th>
					<th class="td_01" height="18px">
						备注
					</th>
					<th class="td_01">
						<INPUT name=price type=hidden>
						单价
					</th>
					<th class="td_01">
						<INPUT name=count type=hidden>
						数量
					</th>
					<th class="td_01">
						是否开发票
					</th>
					<th class="td_01">
						是否特价
					</th>
					<th class="td_01">
						<INPUT name=cash type=hidden>
						金额
					</th>
					
				</tr>
				<logic:iterate id="product" name="productlist" indexId="cd">
					<tr class=tableData id=tdt>
						<td class="td_03">
							${product.name}
						</td>
						<td class="td_03">
							${product.remark}
						</td>
						<td class="td_03">
						<logic:notEqual value="2" name="product"
							property="isspecialoffer">
						<logic:equal value="0" name="product" property="hasinvoice">
						${product.unitprice}
						</logic:equal>	
						</logic:notEqual>
						<logic:equal value="2" name="product"
							property="isspecialoffer">
						<logic:equal value="1" name="product" property="hasinvoice">
						${product.pricetax}
						</logic:equal>	
						</logic:equal>
							
						</td>
						<td class="td_03">
							${product.number}
						</td>
						<td class="td_03">
							<logic:equal value="0" name="product" property="hasinvoice">否</logic:equal>
							<logic:equal value="1" name="product" property="hasinvoice">是</logic:equal>
						</td>
						<td class="td_03">
						<logic:equal value="2" name="product"
							property="isspecialoffer">是</logic:equal>
						<logic:notEqual value="2" name="product"
							property="isspecialoffer">不是</logic:notEqual>
					</td>
						<td class="td_03">
							cd
						</td>
					</tr>
				</logic:iterate>
				<tr>
					<td class="td_04" align="right" colspan="7">
						<div style="padding-left:620px;float:left">支付积分：</div>
						<div id="gaousepoint" style="float:right"> <logic:empty name="orderall"
								property="usepoint">
						0
						</logic:empty> <logic:notEmpty name="orderall" property="usepoint">
							${orderall.usepoint}
							</logic:notEmpty> </div>&nbsp;
					</td>
				</tr>
				<tr>
					<td align="right" class="td_04" colspan="7">
						<div style="padding-left:610px;float:left">支付滞留金：</div>
						<div id="gaousebalance" style="float:right">${orderall.usebalance}</div>&nbsp;
					</td>
				</tr>
				<tr>
					<td align="right" class="td_04" colspan="7">
						<div style="padding-left:620px;float:left">配送金额：</div>
						<div id="gaoneedcarriage" style="float:right">${orderall.needcarriage}</div>&nbsp;
					</td>
				</tr>
				<tr>
					<td align="right" class="td_04" colspan="7">
							<div style="padding-left:620px;float:left">合计金额：</div>
							<div style="float:right" id="gaotaltole"></div> &nbsp;
					</td>
				</tr>
				<input type="hidden" name="temp" value="1" />
			</table>
		</form>
			<table width="98%" height="360px">
				<tr>
					<th height="28px">
						日志管理
					</th>
				</tr>
				<tr>
				<td class="td_04" height="300px" valign="top">
				<br />
				 ${orderlog.remarklog}
				 </td>
				</tr>
			</table>
	</body>
</html>